<template>
  <u-navbar :is-back="pages.length > 1" v-bind="$attrs">
    <slot></slot>
    <template #right v-if="$slots.right">
      <slot name="right"></slot>
    </template>
  </u-navbar>
</template>

<script setup>
const pages = getCurrentPages()
</script>

<style lang="scss" scoped></style>
